 
<script type="text/javascript">
 $(function () { 
    // stats
    $('#questionParModule').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: '<?php echo $titreStatQuestionParModule; ?>'
        },    
        xAxis: {
            categories: [<?php echo $listequestion; ?>],crosshair: true
        },
        yAxis: {
            title: {
                text: ''
            }
        },         
       
        legend: {
            enabled: false
        },
         credits: {
            enabled: false
        },
        series: [<?php echo $listeReponse;?>]
    });
    
    $('#userParModule').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: '<?php echo $titreStatnNbUserParModule; ?>'
        },    
        xAxis: {
            categories: [<?php echo $listeModule; ?>],crosshair: true
        },
        yAxis: {
            title: {
                text: ''
            }
        },        
        legend: {
            enabled: false
        },
         credits: {
            enabled: false
        },
        series: [<?php echo $listeNbUser;?>]
    });
    
    $('#tousModules').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: '<?php echo $titreStatnbReponsePourToutModule; ?>'
        },
                credits :
                {
                    enabled:false
                },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                
            }
        },
        series: [<?php echo $listeNbReponse;?>]
    });
    
 });
</script>


<form id="statistiqueEleveForm" action="<?php echo base_url()."index.php/statistique/statistiques";?>" method="POST">
<div class="evaluation">    
          
    <div class="evaluationListe">
        <div class="evaluationListeTitre">
            <span>Statistiques</span>
        </div>
        
        <div><p>Choisissez un module : <select name="choixModuleStat" id="lstChoixModuleStat">
                <?php
                     foreach ($listeModuleAll->result() as $row)
                     {    
                        echo "<option value=".$row->idmodule;
                        
                        echo ">".$row->nom."</option>";
                     }                     
                ?>
                </select>
                <br/>
                choisissez un semestre : <select name="choixSemestreStat" id="lstChoixSemestreStat"><option value="-1">Tous les semestres</option>
                <?php
                     foreach ($listeSemestre as $rowS)
                     {    
                        echo "<option value=".$rowS->mySem;
                        
                        echo ">".$rowS->libelle."</option>";
                     }                     
                ?>
                </select>
                </p>
                <input type="submit" value="Valider"  id="validerStatEleve"/>
        </div>
        
        
        <div class="statsQuestion">
            <div id="questionParModule" style="width:100%; height:280px;"></div>
            <p><div id="userParModule" style="width:100%; height:280px;"></div></p>
            <p><div id="tousModules" style="width:100%; height:280px;"></div></p>
        </div>  
        
        
    </div>
   
</div>
</form>